#ifndef PLOG_CSV_FORMATTER_H
#define PLOG_CSV_FORMATTER_H

#include "plog/log_message.h"

namespace plog
{

class csv_formatter
{
public:
    csv_formatter()
        : len_(0)
    {}

    const char* header() const;
    size_t header_size() const;

    void format(const message& msg);
    
    size_t length() const {return len_;}
    const char* buffer() const {return buffer_;}

private:
    static const size_t BUF_SIZE = 512;        
    char buffer_[BUF_SIZE];
    size_t len_;
};

}
#endif